#include<iostream>
#include<fstream>
#include"loading.h"
#include<windows.h>
#include<conio.h>
using namespace std;
int main(){
	system("color 17");
	system("title Registering Commander 1.0");
	cout<<"Offical Registerer\n==================\n\n\nWelcome to use.\n  Press \'A\' to active.\n  Press \'Q\' to quit.";
	char a;
	a=getch();
	system("cls");
	if(!(a=='a'||a=='A')){
		cout<<"Offical Registerer\n==================\n\n\nUser cancelled.";
		getch();
		return 0;
	}
	load(50,"none-register-number register is loading files","REGISTERING");
	ofstream reg("passkey.dat");
	reg<<"passkeyreaded";
	cout<<"Registering...\n============\n\n\n\n\nnone-register-number register is registering the commander 1.0...\n";
	Sleep(1000);
	system("cls");
	cout<<"Registered!\n============\n\n\n\n\nYou machine is registered commander! Press any key to quit.\n";
	getch();
	//This is function 'main', put the main code here.
}

